//
//  COHomeFoodListModel.swift
//  CocoProject
//
//  Created by Ruthless on 2023/8/20.
//

import HandyJSON

enum FoodType:Int, HandyJSONEnum {
    case italy = 1
    case france = 2
    case usa = 3
    case russia = 4
    case britain = 5
    case thailand = 6
    case japan = 7
    case other = 8
    
    var name: String {
        switch self {
        case .italy:
            return "Italy Food"
        case .france:
            return "France Food"
        case .usa:
            return "U.S.A Food"
        case .russia:
            return "Russia Food"
        case .britain:
            return "Britain Food"
        case .thailand:
            return "Thailand Food"
        case .japan:
            return "Japanese Food"
        case .other:
            return "Other"
        }
    }
    
    var tag: String {
        switch self {
        case .italy:
            return "Italy"
        case .france:
            return "France"
        case .usa:
            return "U.S.A"
        case .russia:
            return "Russia"
        case .britain:
            return "Britain"
        case .thailand:
            return "Thailand"
        case .japan:
            return "Japanese"
        case .other:
            return "Other"
        }
    }
    
    var image: String {
        switch self {
        case .italy:
            return "Italy"
        case .france:
            return "France"
        case .usa:
            return "U.S.A"
        case .russia:
            return "Russia"
        case .britain:
            return "Britain"
        case .thailand:
            return "Thailand"
        case .japan:
            return "Japanese"
        case .other:
            return "Other"
        }
    }
}

class COHomeFoodListModel: HandyJSON {
    var id = 0
    var userId = 0
    var photo = ""
    var nickName = ""
    var sculpture = ""
    var content = ""
    var type: FoodType = .italy
    var level = ""
    var likes = 0
    var gifts = 0
    var like = false
    var follow = true
    var createDate = Date()
    
    required init() {
        
    }
    
}
